const KLogger = require('koa-logger')
const KStatic = require('koa-static')
const Koa = require('koa')
const { koaBody } = require('koa-body')
const router = require('./app/its-web')

const main = () => {
  const app = new Koa()  
  app.use(KLogger())
  app.use(koaBody())
  app.use(router.router.routes())
    .use(router.router.allowedMethods())
    .use(KStatic('./page'))
    .listen(9000)
}

main()